/**   
 * @Title: BaseEntity.java 
 * @Package com.risetek.core.entity 
 * @Description: 实体基类
 * @author liping.action@gmail.com
 * @date 2013-3-28 下午2:34:14 
 * @version V1.0   
 */
package com.risetek.tft.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.SequenceGenerator;

/**
 * @ClassName: BaseEntity
 * @Description: 实体基类
 * @author liping.action@gmail.com
 * @date 2013-3-28 下午2:34:14
 * 
 */
@MappedSuperclass
public class BaseEntity2 implements Serializable {

	private static final long serialVersionUID = -2580383184777265687L;
	private Integer id;

	 @Id
		@GeneratedValue(strategy = IDENTITY)
		@Column(name = "id", unique = true, nullable = false) 
	/*@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 20, scale = 0)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ACTIVITY_GENERATOR")
	@SequenceGenerator(name = "ACTIVITY_GENERATOR", sequenceName = "HIBERNATE_SEQUENCE")*/
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
} 
